package com.smartalarmclock.Model.Exceptions;

@SuppressWarnings("serial")
public final class PhoneContactDoesNotExistException extends Exception {
	/**
	 * Constructor
	 * @param phoneContactId the id of the contact as it saved in the phone contacts database.
	 */
	public PhoneContactDoesNotExistException(int phoneContactId) {
		super(String.format("The phone contact with the id %d does not exist.", phoneContactId));
	}
	
	/**
	 * Constructor
	 * @param phoneNumber the phone number of the contact
	 */
	public PhoneContactDoesNotExistException(String phoneNumber) {
		super(String.format("The phone contact with the phone number %s does not exist.", phoneNumber));
	}
}
